import request from '@/utils/request'

export const getSearchList = (params) => request({
  url: '/vm-service/region/search',
  params
})
// 新增区域
export const addRegion = (data) => request({
  url: '/vm-service/region',
  method: 'POST',
  data
})
// 查询
export const getSearch = (params) => {
  return request({
    url: `/vm-service/region/${params.regionId}`
  })
}
// 修改
export const putSearch = (data) => request({
  url: `/vm-service/region/${data.id}`,
  method: 'put',
  data
})
// 删除
export const delSearch = (id) => request({
  url: `/vm-service/region/${id}`,
  method: 'DELETE'
})
// 分页组件
export const tacticsDetail = (params) => request({
  url: '/vm-service/policy/search',
  params
})

